package com.cn.study002;

import java.util.Scanner;

/**
 * 抽奖
 * @author liuwei
 *
 */
public class LuckyDraw {

	public static void main(String[] args) {
		Scanner sc=new Scanner(System.in);
		
		System.out.println("请输入4位会员卡号：");
		int number=sc.nextInt();
		
		int a=number%10;
		int b=number/10%10;
		int c=number/100%10;
		int d=number/1000;
		
		int sum=a+b+c+d;
		boolean bool= sum==23;
		System.out.println("是幸运客户吗？"+bool);
		
	}

}
